<!-- 这个是放在网站上面的回调页 -->
<script type="text/javascript" charset="utf-8">
    const ipc = require('electron').ipcRenderer
    const BrowserWindow = require('electron').remote.BrowserWindow

    ipc.on('getWindowID', function (event, fromWindowId) {
        const fromWindow = BrowserWindow.fromId(fromWindowId)
        fromWindow.webContents.send('getCode', window.location)
        window.close()
    });
</script>